package service.impl;

import dao.LifeDao;
import dao.impl.LifeDaoImpl;
import entity.Life;
import entity.Schedule;
import service.LifeService;

import java.util.ArrayList;

public class LifeServiceImpl implements LifeService {
    private LifeDao lifeDao = new LifeDaoImpl();
    public String insert(String idNumber, String life) throws Exception {
        return lifeDao.insert(idNumber,life);
    }

    @Override
    public ArrayList<Life> findLife(String idNumber) throws Exception {
        return lifeDao.findLife(idNumber);
    }
}
